package com.bdqn.service;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bdqn.pojo.SysUser;

import java.util.List;

public interface SysUserService extends IService<SysUser> {
    SysUser login(String userName,String passWord);
    Page<SysUser> getPage(Page<SysUser> page, String userName, Long roleId);

    SysUser getUserById(Integer usrId);

    List<SysUser> findAllUsers();

    int saveUser(SysUser user);

    int deleteUser(int id);

    List<SysUser> selectUsersPage(Integer roleId, String usrName, int i, Integer userPageSize);

    SysUser getUser(Long usrId);

    Object selectUserList();

    public SysUser findUserByUsrName(String userName);
}
